import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;


public class Main {
    public static void main(String[] args) throws IOException {
       /*
    	Graph g = new Graph();
        Vertex s = g.addVertex(1,0);
        Vertex t = g.addVertex(2,0);
        Vertex y = g.addVertex(3,0);
        Edge st = g.addEdge(s, t, 0, 0, 0);
        Edge sy = g.addEdge(s, y, 0, 0, 0);
        Edge ty = g.addEdge(t, y, 0, 0, 0);
        Edge yt = g.addEdge(y, t, 0, 0, 0);
        System.out.println(g);
        */

    	FileProcessor fp = new FileProcessor("src/cap4.net");
    	Graph g = fp.processFile();
    	System.out.println(g);
    	System.out.println(g.flowOptCondition());
    	
    	
    }
}
